package com.github.jspxnet.worktask.model.param;

import com.github.jspxnet.json.JsonField;
import com.github.jspxnet.sober.annotation.Column;
import com.github.jspxnet.sober.annotation.Id;
import com.github.jspxnet.txweb.annotation.Param;
import com.github.jspxnet.utils.StringUtil;
import com.github.jspxnet.worktask.model.enums.JobEnumType;
import lombok.Data;

import java.io.Serializable;

/**
 * Created by jspx.net
 * author: chenYuan
 * date: 2021/9/29 22:04
 * description: jspx-framework
 **/
@Data
public class ConfFlowJobParam implements Serializable {

    @Param(caption = "命名空间")
    private String namespace = StringUtil.empty;

    @Param(caption = "流程编号")
    private String flowNo = StringUtil.empty;

    //不能等于本节点
    @Param(caption = "所属节点ID")
    private String nodeId = StringUtil.empty;

    @Param(caption = "条件类型")
    private int jobType = JobEnumType.NONE.getValue();

    //如果是抄送,签收这里是 用户对象
    @Param(caption = "用户对象")
    private String users = StringUtil.empty;

    //人数条件
    @Param(caption = "或签人数")
    private int memberCount = 0;

    //有可能是执行一个类的方法,或者是调用一个http 接口
    @Param(caption = "脚本类型")
    private String scriptType = StringUtil.empty;

    //有条件的流程,这里是流程判断脚本
    @Param(caption = "脚本,如果是http调用这里是参数,默认JSON方式")
    private String script = StringUtil.empty;

    //要执行的动作类
    @Param(caption = "调用代码类")
    private String className = StringUtil.empty;

    @Param(caption = "调用的方法名,如果是http调用这里写URL")
    private String callMethod = StringUtil.empty;


    
}
